Run build-time tests under Xvfb
authorSimon McVittie <smcv@debian.org>
Tue, 18 Sep 2018 22:32:31 +0000 (23:32 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 18 Sep 2018 22:32:31 +0000 (23:32 +0100)
debian/changelog
debian/rules

index 4d7c6356a05f42fe0f65c9230cb8c735f0bc6c40..9321875e0a9bd5453e69179344336551fa6414dd 100644 (file)
@@ -60,6 +60,7 @@ gtk+4.0 (3.94.0-1) UNRELEASED; urgency=medium
   * Fix generation of README.md.gz symlinks
   * Generate a dependency on libgtk-4-0.9400.0 since the ABI is not yet
     stable
+  * Run build-time tests under Xvfb
 
  -- Jeremy Bicha <jbicha@debian.org>  Fri, 19 Jan 2018 22:05:35 -0500
 
index 9469c9db1482d7f3ee8b04a41f5d4911c08d8bf8..69da22110e5b8f6e05614e1eeb6faef894a138d7 100755 (executable)
@@ -180,7 +180,9 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        cp gtk/org.gtk.* debian/build/glib-2.0/schemas/
        glib-compile-schemas debian/build/glib-2.0/schemas/
        # Remove LD_PRELOAD so we don't run with fakeroot, which makes dbus-related tests fail
-       env -u LD_PRELOAD dh_auto_test --builddirectory=debian/build/deb -- -k 0 -j 1 || true
+       env -u LD_PRELOAD \
+       xvfb-run -a \
+       dh_auto_test --builddirectory=debian/build/deb -- -k 0 -j 1 || true
 endif
 
 override_dh_auto_install: